//
// Created by Yaotian on 2/7/14.
// Copyright (c) 2014 Kollway Mobile. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface KWMImageUtil : NSObject



/**
 * 创建透明的UIImage
 */
+ (UIImage *)createTransparentImage;

/**
 * 创建指定颜色的UIImage
 */
+ (UIImage *)createColorImage:(UIColor *)color;
+ (UIImage *)createGradientImage:(UIColor *)startColor endColor:(UIColor *)endColor size:(CGSize)size;
+ (BOOL)saveJPGImageToFile:(NSString *)filePath image:(UIImage *)image;
+ (BOOL)savePNGImageToFile:(NSString *)filePath image:(UIImage *)image;

+ (UIImage *)getImageFromFile:(NSString *)filePath;
/**把图片缩放到指定大小*/
+ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;
+ (UIImage *)imageAfterZoom:(UIImage *)image scale:(float)scale;
@end